home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / x / gui / xfract.lha / xfract / xpt.h < prev   
Encoding:
C/C++ Source or Header  |  1990-06-27  |  1.2 KB  |  38 lines

  1. /*****************************************************************************
  2. /* FILE         : xpt.h
  3. /* DATE         : August 25, 1989.
  4. /* AUTHOR       : Paul Sharpe @ DEC, Reading (OSCR-Europe).
  5. /* FUNCTION     : header file to 'toolkit' of common functions.
  6. /*
  7. /*   Copyright (c) Digital Equipment Corporation 1990  All rights reserved.
  8. /*   Copyright is claimed in the computer program and user interface thereof.
  9. /*
  10. /*   Digital Equipment Corporation cannot accept any responsibility for
  11. /*   use, misuse, or abuse of this software.
  12. /*
  13. /*****************************************************************************/
  14.  
  15. #define DEFDSPLY        "unix:0.0"
  16.  
  17. #define DEBUG(x)        {printf x; fflush(stdout);}
  18. #define ROOTWNDW(d)    RootWindow((d),DefaultScreen((d)))
  19. #define DEFDEPTH(d)    DefaultDepth((d),DefaultScreen((d)));
  20.  
  21. #define TRUE    1
  22. #define ON    1
  23. #define YES    1
  24. #define    SET    1
  25.  
  26. #define    FALSE    0
  27. #define OFF    0
  28. #define NO    0
  29. #define UNSET    0
  30.  
  31. #define ARGS(X)    (args[(X)].valstr)
  32. struct opts {
  33.     char        flagstr[32];    /* Full argument flag string */
  34.     char    aflagstr[8];    /* Abbreviated argument flag string */
  35.     char    *valstr;    /* Argument command line value. */
  36.     char    *usage;        /* Usage descriptor. */
  37. };
  38.